package com.neusoft.boot32.dibuy.entity.basic;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.time.LocalDateTime;

/**
 * @program: springboot32
 * @description:
 * @author: Jingdi.Duan ,duanjingdi@msn.com
 * @create: 2024-07-11 08:47
 **/
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class BaseEntity {
    private  StatusEnum status =   StatusEnum.ACTIVE ;
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    @TableField(fill = FieldFill.UPDATE)
    private LocalDateTime lastModifiedTime;
    private Integer version = 0;
}

